package com.jiaming.restaurant.api.common.response;

import lombok.Getter;

/**
 * @author dragon
 * @create 2021-03-01 20:25
 */
@Getter
public enum ResultCodeEnum {
    SUCCESS(200,"SUCCESS"),
    FAIL(5000,"未知错误"),
    BIZ_DAIL(8000,"业务错误"),

    FAIL_PARAM_MISSING(2001,"缺少必填参数"),
    FAIL_PARAM_TYPE(2002,"参数类型不匹配"),
    FAIL_REQUEST_METHOD(2003,"请求内容方法错误"),
    FAIL_REQUEST_TYPE(2004,"请求内容类型错误"),
    FAIL_REQUEST_CONTENT(2005,"无法读取请求内容"),
    FAIL_PARAM_VALIDATE(2006,"参数值不合法"),
    ;
    private Integer code;
    private String msg;

    ResultCodeEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
